#include "canvas.h"
int main()
{
    Canvas cvs(400,400);
    cvs.SetCurrent(Point(100,100));
    
    Rectangle rec(cvs.Current(),Point(300, 300));
    cvs.Draw(&rec);

    
    Point start(50,100);
    cvs.SetCurrent(start);
    Line line1(cvs.Current(), Point(200, 0));
    cvs.Draw(&line1);    
    Line line2(cvs.Current(), Point(350,100));
    cvs.Draw(&line2);        
    Line line3(cvs.Current(), start);
    cvs.Draw(&line3);

    Line line4(rec.e(), rec.w());
    cvs.Draw(&line4);
}
